package com.app.service.impl;

import com.app.mapper.CategoryMapper;
import com.app.mapper.StudentFilesMapper;
import com.app.model.CategoryModel;
import com.app.model.StudentFilesModel;
import com.app.model.TrainEnrollModel;
import com.app.service.CategoryService;
import com.app.service.StudentFilesService;
import com.app.util.StringTool;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
@Primary
public class StudentFilesServiceImpl implements StudentFilesService {
    @Autowired
    StudentFilesMapper studentFilesMapper;


    @Override
    public StudentFilesModel getModelByIdCard(String idCard) {
        QueryWrapper<StudentFilesModel> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("id_card", idCard);
        return studentFilesMapper.selectOne(queryWrapper);
    }
}
